<% content_for :title do %>修改你的密码<% end %>

<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put,:class=>"form-horizontal" }) do |f| %>
  
<% if resource.errors.any? %>
 <%= render :partial=>'/layouts/errors', :locals=>{:errors=>resource.errors}%>
<% end %>

 <%= f.hidden_field :reset_password_token %>

 <div class="form-group">
	<%= f.label "新密码",:class=>"col-sm-2 control-label" %>
	<div class="col-sm-4">
	<%= f.password_field :password,:class=>"form-control",autocomplete: "off" %>
	</div>
</div>

<div class="form-group">
	<%= f.label "确认密码",:class=>"col-sm-2 control-label" %>
	<div class="col-sm-4">
	 <%= f.password_field :password_confirmation,:class=>"form-control", autocomplete: "off" %>
	</div>
</div>

 <div class="col-sm-offset-2 col-sm-10">
    <%= f.submit "修改密码",:class=>"btn btn-default btn-primary" %>
    <hr/>
    <%= link_to "返回登录", new_session_path(resource_name) %>
 </div>


<% end %>

